<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/pico/rand.h File Reference</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('rand_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">rand.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="pico_8h_source.html">pico.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for rand.h:</div>
<div class="dyncontent">
<div class="center"><img src="rand_8h__incl.png" border="0" usemap="#ainclude_2pico_2rand_8h" alt=""/></div>
<map name="ainclude_2pico_2rand_8h" id="ainclude_2pico_2rand_8h">
<area shape="rect" title=" " alt="" coords="369,5,515,32"/>
<area shape="rect" href="pico_8h.html" title=" " alt="" coords="411,80,473,107"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2types_8h_source.html" title=" " alt="" coords="158,304,259,331"/>
<area shape="rect" title=" " alt="" coords="252,155,365,181"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2config_8h_source.html" title=" " alt="" coords="390,155,494,181"/>
<area shape="rect" href="platform_8h.html" title=" " alt="" coords="596,155,717,181"/>
<area shape="rect" href="error_8h_source.html" title=" " alt="" coords="741,155,836,181"/>
<area shape="rect" href="assert_8h_source.html" title=" " alt="" coords="5,379,111,405"/>
<area shape="rect" title=" " alt="" coords="74,453,157,480"/>
<area shape="rect" title=" " alt="" coords="211,379,281,405"/>
<area shape="rect" title=" " alt="" coords="306,379,381,405"/>
<area shape="rect" title=" " alt="" coords="173,229,337,256"/>
<area shape="rect" href="compiler_8h_source.html" title=" " alt="" coords="362,229,543,256"/>
<area shape="rect" href="sections_8h_source.html" title=" " alt="" coords="567,229,746,256"/>
<area shape="rect" href="panic_8h_source.html" title=" " alt="" coords="770,229,930,256"/>
<area shape="rect" title=" " alt="" coords="954,229,1165,256"/>
<area shape="rect" title=" " alt="" coords="1189,229,1340,256"/>
<area shape="rect" title=" " alt="" coords="357,304,548,331"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="rand_8h__dep__incl.png" border="0" usemap="#ainclude_2pico_2rand_8hdep" alt=""/></div>
<map name="ainclude_2pico_2rand_8hdep" id="ainclude_2pico_2rand_8hdep">
<area shape="rect" title=" " alt="" coords="5,5,151,32"/>
<area shape="rect" href="cc_8h_source.html" title=" " alt="" coords="13,80,143,107"/>
</map>
</div>
</div>
<p><a href="rand_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrng__128.html">rng_128</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a6d68829b2aab447cc0ac75b3feb4d88e"><td class="memItemLeft" align="right" valign="top"><a id="a6d68829b2aab447cc0ac75b3feb4d88e" name="a6d68829b2aab447cc0ac75b3feb4d88e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_ENTROPY_SRC_ROSC</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a6d68829b2aab447cc0ac75b3feb4d88e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16fa252c444473360900cc3f7781d2b9"><td class="memItemLeft" align="right" valign="top"><a id="a16fa252c444473360900cc3f7781d2b9" name="a16fa252c444473360900cc3f7781d2b9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_ENTROPY_SRC_TIME</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a16fa252c444473360900cc3f7781d2b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bf0a952ec6d01b64b74b37ee2da7125"><td class="memItemLeft" align="right" valign="top"><a id="a7bf0a952ec6d01b64b74b37ee2da7125" name="a7bf0a952ec6d01b64b74b37ee2da7125"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a7bf0a952ec6d01b64b74b37ee2da7125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9f79e53d0fbd6e68118eac014673b17"><td class="memItemLeft" align="right" valign="top"><a id="ab9f79e53d0fbd6e68118eac014673b17" name="ab9f79e53d0fbd6e68118eac014673b17"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_SEED_ENTROPY_SRC_ROSC</b>&#160;&#160;&#160;PICO_RAND_ENTROPY_SRC_ROSC</td></tr>
<tr class="separator:ab9f79e53d0fbd6e68118eac014673b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1d3e35b63eae69481aa9f5a83a7de6c"><td class="memItemLeft" align="right" valign="top"><a id="ac1d3e35b63eae69481aa9f5a83a7de6c" name="ac1d3e35b63eae69481aa9f5a83a7de6c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_SEED_ENTROPY_SRC_TIME</b>&#160;&#160;&#160;PICO_RAND_ENTROPY_SRC_TIME</td></tr>
<tr class="separator:ac1d3e35b63eae69481aa9f5a83a7de6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6facffab9919340149541bdca1d824"><td class="memItemLeft" align="right" valign="top"><a id="ade6facffab9919340149541bdca1d824" name="ade6facffab9919340149541bdca1d824"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_SEED_ENTROPY_SRC_BUF_PERF_COUNTER</b>&#160;&#160;&#160;PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER</td></tr>
<tr class="separator:ade6facffab9919340149541bdca1d824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dc0efe5678a480576780c96c334b026"><td class="memItemLeft" align="right" valign="top"><a id="a3dc0efe5678a480576780c96c334b026" name="a3dc0efe5678a480576780c96c334b026"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_SEED_ENTROPY_SRC_BOARD_ID</b>&#160;&#160;&#160;(!PICO_RAND_SEED_ENTROPY_SRC_BOOT_RANDOM)</td></tr>
<tr class="separator:a3dc0efe5678a480576780c96c334b026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a413241512da98d1c5b4c8fa85cb7be26"><td class="memItemLeft" align="right" valign="top"><a id="a413241512da98d1c5b4c8fa85cb7be26" name="a413241512da98d1c5b4c8fa85cb7be26"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_SEED_ENTROPY_SRC_RAM_HASH</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a413241512da98d1c5b4c8fa85cb7be26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01ec243380eb962a426593912df08092"><td class="memItemLeft" align="right" valign="top"><a id="a01ec243380eb962a426593912df08092" name="a01ec243380eb962a426593912df08092"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_ROSC_BIT_SAMPLE_COUNT</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a01ec243380eb962a426593912df08092"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff32bff7c000d760faece8abbba50c9"><td class="memItemLeft" align="right" valign="top"><a id="aeff32bff7c000d760faece8abbba50c9" name="aeff32bff7c000d760faece8abbba50c9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_MIN_ROSC_BIT_SAMPLE_TIME_US</b>&#160;&#160;&#160;10u</td></tr>
<tr class="separator:aeff32bff7c000d760faece8abbba50c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23c8ad464cd02005909e83084dd06a24"><td class="memItemLeft" align="right" valign="top"><a id="a23c8ad464cd02005909e83084dd06a24" name="a23c8ad464cd02005909e83084dd06a24"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_BUS_PERF_COUNTER_EVENT</b>&#160;&#160;&#160;arbiter_sram5_perf_event_access</td></tr>
<tr class="separator:a23c8ad464cd02005909e83084dd06a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29bc3dc0b41e9aef6ba0a42b8b51ce54"><td class="memItemLeft" align="right" valign="top"><a id="a29bc3dc0b41e9aef6ba0a42b8b51ce54" name="a29bc3dc0b41e9aef6ba0a42b8b51ce54"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_RAM_HASH_END</b>&#160;&#160;&#160;SRAM_END</td></tr>
<tr class="separator:a29bc3dc0b41e9aef6ba0a42b8b51ce54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf4d6fa8ce14aec5c30e97c384321c83"><td class="memItemLeft" align="right" valign="top"><a id="abf4d6fa8ce14aec5c30e97c384321c83" name="abf4d6fa8ce14aec5c30e97c384321c83"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PICO_RAND_RAM_HASH_START</b>&#160;&#160;&#160;(PICO_RAND_RAM_HASH_END - 1024u)</td></tr>
<tr class="separator:abf4d6fa8ce14aec5c30e97c384321c83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:af6c69a65fa0468e9af74d1271445c85d"><td class="memItemLeft" align="right" valign="top"><a id="af6c69a65fa0468e9af74d1271445c85d" name="af6c69a65fa0468e9af74d1271445c85d"></a>
typedef struct <a class="el" href="structrng__128.html">rng_128</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rng_128_t</b></td></tr>
<tr class="separator:af6c69a65fa0468e9af74d1271445c85d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga97a9544b527a3ba865ab70142bdd5d1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__rand.html#ga97a9544b527a3ba865ab70142bdd5d1b">get_rand_128</a> (<a class="el" href="structrng__128.html">rng_128_t</a> *rand128)</td></tr>
<tr class="memdesc:ga97a9544b527a3ba865ab70142bdd5d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get 128-bit random number.  <a href="group__pico__rand.html#ga97a9544b527a3ba865ab70142bdd5d1b">More...</a><br /></td></tr>
<tr class="separator:ga97a9544b527a3ba865ab70142bdd5d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga783185fba81c03eb0c1d687d322b0112"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__rand.html#ga783185fba81c03eb0c1d687d322b0112">get_rand_64</a> (void)</td></tr>
<tr class="memdesc:ga783185fba81c03eb0c1d687d322b0112"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get 64-bit random number.  <a href="group__pico__rand.html#ga783185fba81c03eb0c1d687d322b0112">More...</a><br /></td></tr>
<tr class="separator:ga783185fba81c03eb0c1d687d322b0112"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac446d739bd6818ee25b5c8644ef7c8e8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__rand.html#gac446d739bd6818ee25b5c8644ef7c8e8">get_rand_32</a> (void)</td></tr>
<tr class="memdesc:gac446d739bd6818ee25b5c8644ef7c8e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get 32-bit random number.  <a href="group__pico__rand.html#gac446d739bd6818ee25b5c8644ef7c8e8">More...</a><br /></td></tr>
<tr class="separator:gac446d739bd6818ee25b5c8644ef7c8e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>
